﻿<!DOCTYPE html>
@{
    var count = 25;
    var message = "this is a message";
    var escapedMessage = "a message with \"standard escape codes\"";
    var literalMessage = @"a message without substitution \n \t \b";
}

<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>This is just a Razor Test Page</title>
    </head>
    
    <body>
        <h2> @message </h2>
        <p>This is a cshtml test site called page.cshtml</p>
        <!-- in markup mode ... we can use html comments ... 
             but this comment goes to the user -->
        
        @* this is a Razor comment ... single or multiline .. 
           no html is emitted for this comment and this
           works in code and html 'mode' *@
        @for(int i = 1; i <= count; i++)
        {
            // standard c# comment ...
            @:message: @i.ToString()
            if (i % 5 == 0)
            {
                @:<br/>
            }
        }
        @escapedMessage <br />
        @literalMessage <br />
    </body>
</html>
